import request from '@/utils/request'

// 查询课程目标达成度评价项列表
export function listCourseTargetItem(query) {
  return request({
    url: '/course/CourseTargetItem/list',
    method: 'get',
    params: query
  })
}

// 查询课程目标达成度评价项详细
export function getCourseTargetItem(id) {
  return request({
    url: '/course/CourseTargetItem/' + id,
    method: 'get'
  })
}

// 新增课程目标达成度评价项
export function addCourseTargetItem(data) {
  return request({
    url: '/course/CourseTargetItem',
    method: 'post',
    data: data
  })
}

// 修改课程目标达成度评价项
export function updateCourseTargetItem(data) {
  return request({
    url: '/course/CourseTargetItem',
    method: 'put',
    data: data
  })
}

// 删除课程目标达成度评价项
export function delCourseTargetItem(id) {
  return request({
    url: '/course/CourseTargetItem/' + id,
    method: 'delete'
  })
}

// 添加本科课程目标达成度评价（添加中间表）
export function addCourseTargetEval(data) {
  return request({
    url: '/course/CourseTargetItem/addCourseTargetEval',
    method: 'post',
    data: data
  })
}